package com.bw.shopping.mvvm.model;

import com.bw.goods.mvvm.model.entity.AddShopEntity;
import com.bw.mvvm_common.entity.BaseEntity;
import com.bw.shopping.entity.AddressEntity;
import com.bw.shopping.entity.CompileEntity;
import com.bw.shopping.entity.DeletEntity;
import com.bw.shopping.entity.GetAddressEntity;
import com.bw.shopping.entity.OrderEntity;
import com.bw.shopping.entity.PayEntity;
import com.bw.shopping.entity.Shopcarentity;
import com.bw.shopping.entity.SubOrderEntity;
import com.bw.shopping.entity.SubmitCar;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/22 0022 上午 10:16
 *
 */
interface Api {
    @POST("cart/getList")
    Observable<Shopcarentity> requestShopcar(@Body RequestBody body);
    @POST("cart/add")
    Observable<AddShopEntity> requestGoodcart(@Body RequestBody body);
    @POST("cart/submit")
    Observable<SubmitCar> requestSubmitCar(@Body RequestBody body);
    @POST("order/getOrderById")
    Observable<OrderEntity> requestgetOrder(@Body RequestBody body);
    //添加收货地址
    @POST("shipAddress/add")
    Observable<AddressEntity>requestAddAddress(@Body RequestBody body);
    //收货地址
    @POST("shipAddress/getList")
    Observable<GetAddressEntity>requestGetAddress(@Body RequestBody body);

    @POST("shipAddress/delete")
    Observable<DeletEntity>requestdelete(@Body RequestBody body);
    //编辑地址
    @POST("shipAddress/modify")
    Observable<CompileEntity>requestCompile(@Body RequestBody body);
    //提交
    @POST("order/submitOrder")
    Observable<SubOrderEntity>requestsubmitOrder(@Body RequestBody body);
    //支付宝
    @POST("pay/getPaySign")
    Observable<PayEntity>requestPay(@Body RequestBody body);
}
